<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function f1(){
				alert(location.href)
			}
			function f2(){
				// 修改这个属性，可以实现网页跳转
				location.href="https://www.pzhu.cn/"
			}
		</script>
	</head>
	
	<body>
		<button onclick="f1()">获取url</button>
		<button onclick="f2()">设置url</button>
	</body>
</html>
